import request from '@/utils/request'

// 查询烹饪方式列表
export function listCookingType(query) {
  return request({
    url: '/tenant/cookingType/list',
    method: 'get',
    params: query
  })
}

// 查询烹饪方式详细
export function getCookingType(cookingTypeId) {
  return request({
    url: '/tenant/cookingType/' + cookingTypeId,
    method: 'get'
  })
}

// 新增烹饪方式
export function addCookingType(data) {
  return request({
    url: '/tenant/cookingType',
    method: 'post',
    data: data
  })
}

// 修改烹饪方式
export function updateCookingType(data) {
  return request({
    url: '/tenant/cookingType',
    method: 'put',
    data: data
  })
}

// 删除烹饪方式
export function delCookingType(cookingTypeId) {
  return request({
    url: '/tenant/cookingType/' + cookingTypeId,
    method: 'delete'
  })
}
